const express=require('express')
const app=express()
const port=8085
const cors=require('cors')
app.use(cors())
app.use(express.static('img'))

app.get('/getURL',(req,res)=>{
    let obj={
        code:200,
        msg:'success',
        dataUrl:'http://127.0.0.1:8085/xiaomi.jpg'
    }
    res.send(obj)
})


app.listen(port,()=>{
    console.log('app is runing')
})